<template>
    <div class="mui-content commentList mui-scroll-wrapper">
        <div class="mui-scroll">
            <ul v-for="comment in list" class="mui-table-view mgb1">
                <li class="mui-table-view-cell enterpriseComments">
                    <span class="text3">订单编号：</span>
                    <span class="text3">{{comment.orderCode}}</span>
                </li>
                <li class="mui-table-view-cell evaluateText">
                    <p class="text2">
                        {{comment.commentContent}}
                    </p>
                </li>
                <li class="mui-table-view-cell">
                    <p class="col-8  text3">
                        <span>综合评分：</span>
                        <span>
                        <span class="text2-size color4">{{comment.commentScore|toDou}}</span>
                        <span class="separate">/</span>
                        <span class="totalScore">5.0</span>
                    </span>
                    </p>
                    <p class="col-4 mui-text-right text3">{{comment.commentTime}}</p>
                </li>
            </ul>
        </div>
        <!--没有评价-->
        <div class="notEvaluate" v-if="list.length==0">
            <div class="evaluateIcon mui-text-center">
                <i class="icon-daipingjia color7 text6-size"></i>
            </div>
            <p class="evaluateText mui-text-center color2 text2-size">您还没有相关评价</p>
        </div>
    </div>
</template>
<style>
    .enterpriseComments .score{font-size: 0.38rem; color:#ff8317;}
    .enterpriseComments .separate , .commentList .totalScore{font-size: 0.28rem; color:#000;}
</style>
<script type="text/ecmascript-6">
    import '../../fonts/mui.css';
    import { API } from '../../config/constants'
    import Page from '../../base/Page'
    export default new Page({
        data(){
            return{
                list:[]
            }
        },
        ready () {
            //上拉下拉
            mui('.mui-scroll-wrapper').scroll({
                indicators: true, //是否显示滚动条
                deceleration : 0.0005,
            });

            this.getJSON(API.LIST_COMMENT, {}, res => {
                this.list = res.resultData
            });
            //console.log(JSON.stringify(this.list));
        },
        components:{

        }
    });

</script>